﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OnlineTestsModels
{
    public class Test
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Password { get; set; }
        public DateTime StartDate { get; set; }
        public DateTime EndDate { get; set; }
        public int DurationMinutes { get; set; }
        public virtual ICollection<UserToTest> UsersToTest { get; set; }

        public virtual ICollection<Question> Questions { get; set; }
        public Test()
        {
            this.UsersToTest = new HashSet<UserToTest>();
            this.Questions = new HashSet<Question>();
        }
    }


}
